package com.fyt.video.project;

import com.sun.jna.NativeLong;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.lang.reflect.InvocationTargetException;

@Controller
public class PlayController{
    @GetMapping(value = "index")
    public String index(){
        return "index";
    }

    @ResponseBody
    @GetMapping(value = "getVal")
    public Object data() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationException {
        MyClient myClient = new MyClient();
        NativeLong login = myClient.login();
        return login;
    }
}
